package com.czmh.etc.onlinepubsys.services.mingchuang;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.czmh.etc.onlinepubsys.entity.mingchuang.ExchangeCode;
import com.czmh.etc.onlinepubsys.request.mingchuang.ExchangeCodeRequest;

import java.util.List;

public interface IExchangeCodeService {
    List<String> createCode(String dvId, Integer num);

    /**
     * 验证兑换码
     * @param exchangeCode
     * @param deviceId
     * @return true 有效
     */
    boolean checkExchangeCode(String exchangeCode, String deviceId);

    IPage<ExchangeCode> query(ExchangeCodeRequest req);
}
